package com.lianrui.app.order.services;

/**
 * 功能描述：订单状态
 *
 * @author LJQ
 *
 * 2015年12月30日 上午9:44:47
 */
public abstract class OrderStatus {

	// 订单状态
	public static final int ORDER_CHANGED = -7;// 已换货

	public static final int ORDER_CHANGE_REFUSE = -6;// 换货被拒绝

	public static final int ORDER_RETURN_REFUSE = -5;// 退货被拒绝

	public static final int ORDER_CHANGE_APPLY = -4;// 申请换货

	public static final int ORDER_RETURN_APPLY = -3; // 申请退货

	public static final int ORDER_CANCEL_SHIP = -2; // 退货

	public static final int ORDER_CANCEL_PAY = -1; // 退款

	public static final int ORDER_NOT_PAY = 0; // 未付款

	public static final int ORDER_PAY = 1; // 已支付

	public static final int ORDER_SHIP = 2; // 已发货

	public static final int ORDER_COMPLETE = 3; // 已完成

	public static final int ORDER_CANCEL = 4; // 作废

	public static final int ORDER_ACCEPTED = 5; // 已受理

	public static final int ORDER_PORTIONPAY = 6; // 部分支付

	public static final int ORDER_REFUND = 7; // 退款中

	public static final int ORDER_SERIAL_NO = 9;// 汇款待确认

	// 付款状态
	public static final int PAY_NO = 0; // 未支付

	public static final int PAY_YES = 1; // 已支付

	public static final int PAY_CANCEL = 2; // 已经退款

	public static final int PAY_PARTIAL_REFUND = 3; // 部分退款

	public static final int PAY_PARTIAL_PAYED = 4;// 部分付款

	// 货运状态
	public static final int SHIP_NO = 0; // 0未发货

	public static final int SHIP_YES = 1;// 1已发货

	public static final int SHIP_CANCEL = 2;// 2.已退货

	public static final int SHIP_PARTIAL_SHIPED = 4; // 4 部分发货

	public static final int SHIP_PARTIAL_CANCEL = 3;// 3 部分退货

	public static final int SHIP_PARTIAL_CHANGE = 5;// 5部分换货

	public static final int SHIP_CHANED = 6;// 6已换货

	public static String getStatusZH(Integer status) {
		//订单状态，0-未付款，1-已付款，2-已发货，3-完成，4-作废，5-已受理，6-部分支付
		// 7-退款中，9-汇款待确认，-1退款，-2退货，-3申请退货，-4申请换货，-5退货被拒绝，-6换货被拒绝，-7已换货	
		switch (status) {
		case ORDER_CHANGED:
			return "已换货";
		case ORDER_CHANGE_REFUSE:
			return "换货被拒绝";
		case ORDER_RETURN_REFUSE:
			return "退货被拒绝";
		case ORDER_CHANGE_APPLY:
			return "申请换货";
		case ORDER_RETURN_APPLY:
			return "申请退货";
		case ORDER_CANCEL_SHIP:
			return "退货";
		case ORDER_CANCEL_PAY:
			return "退款";
		case ORDER_NOT_PAY:
			return "未付款";
		case ORDER_PAY:
			return "已付款";
		case ORDER_SHIP:
			return "已发货";
		case ORDER_COMPLETE:
			return "完成";
		case ORDER_CANCEL:
			return "作废";
		case ORDER_ACCEPTED:
			return "已受理";
		case ORDER_SERIAL_NO:
			return "财务待确认";
		case ORDER_PORTIONPAY:
			return "部分支付";
		case ORDER_REFUND:
			return "退款中";
		default:
			return "无效状态";
		}
	}
}
